<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";

	String group = "Pie3D";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<%
		
		StringBuffer strBuf = new StringBuffer();
		strBuf.append("<chart caption='FusionChart示例' showNames='1' decimalPrecision='0'>");
		String[] keys = new String[10];
		String[] values = new String[10];
		for (int i = 0; i < 10; i++) {
			keys[i] = i + "";
			values[i] = i * 1000 + "";
		}
		for (int i = 0; i < 10; i++) {
			strBuf.append("<set label='" + keys[i] + "' value='"
					+ values[i] + "' />");
		}

		strBuf.append("</chart>");
		/**
		此处必须引到FusionChart下的/Includes/swf/文件夹
		 */
		String graphType = path + "/FusionChart/Includes/swf/" + group
				+ ".swf";
	%>
	<center>
		<div></div>

		<jsp:include
			page="../FusionChart/Includes/jsp/FusionChartsHTMLRenderer.jsp"
			flush="true">
			<jsp:param name="chartSWF" value="<%=graphType%>" />
			<jsp:param name="strURL" value="" />
			<jsp:param name="strXML" value="<%=strBuf.toString()%>" />
			<jsp:param name="chartId" value="accounts_code" />
			<jsp:param name="chartWidth" value="1000" />
			<jsp:param name="chartHeight" value="450" />
			<jsp:param name="debugMode" value="false" />
		</jsp:include>
	</center>
</body>
</html>



